LinearLayoutCompat
A Layout that arranges its children in a single column or a single row. The direction of the row can be set by calling setOrientation(). You can also specify gravity, which specifies the alignment of all the child elements by calling setGravity() or specify that specific children grow to fill up any remaining space in the layout by setting the weight member of LinearLayoutCompat.LayoutParams. The default orientation is horizontal.
See the Linear Layout guide.
Also see LinearLayoutCompat.LayoutParams for layout attributes
Inheritors
Constructors
Link copied to clipboard
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, defStyleAttr: Int)
Types
Link copied to clipboard
Link copied to clipboard
Per-child layout information associated with ViewLinearLayout.
Link copied to clipboard
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get the padding size used to inset dividers in pixels
Link copied to clipboard
Get the width of the current divider drawable.
Link copied to clipboard
Returns the current gravity.
Link copied to clipboard
Returns the current orientation.
Link copied to clipboard
Link copied to clipboard
Returns the desired weights sum.
Link copied to clipboard
Indicates whether widgets contained within this layout are aligned on their baseline or not.
Link copied to clipboard
When true, all children with a weight will be considered having the minimum size of the largest child.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Defines whether widgets contained in this layout are baseline-aligned or not.
Link copied to clipboard
Link copied to clipboard
Set a drawable to be used as a divider between items.
Link copied to clipboard
Set padding displayed on both ends of dividers.
Link copied to clipboard
Describes how the child views are positioned.
Link copied to clipboard
Link copied to clipboard
When set to true, all children with a weight will be considered having the minimum size of the largest child.
Link copied to clipboard
Should the layout be a column or a row.
Link copied to clipboard
Set how dividers should be shown between items in this layout
Link copied to clipboard
Link copied to clipboard
Defines the desired weights sum.
Link copied to clipboard